package com.ruoyi.smart.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 产品测试记录对象 smart_product_test_record
 * 
 * @author minwei
 * @date 2022-10-20
 */
public class SmartProductTestRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 产品ID */
    @Excel(name = "产品ID")
    private Long productId;

    /** 测试名称 */
    @Excel(name = "测试名称")
    private String testName;

    /** 测试结果 */
    @Excel(name = "测试结果")
    private String testState;

    /** 测试时间 */
    @Excel(name = "测试时间")
    private Date testTime;

    /** 测试人 */
    @Excel(name = "测试人")
    private String testUesr;

    @Excel(name = "产品型号ID")
    private Long productModelId;
    @Excel(name = "计划ID")
    private Long taskPalnId;
    @Excel(name = "组织机构ID")
    private Long organizeorganazId;

    private SmartProduct smartProduct;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setTestName(String testName) 
    {
        this.testName = testName;
    }

    public String getTestName() 
    {
        return testName;
    }
    public void setTestState(String testState) 
    {
        this.testState = testState;
    }

    public String getTestState() 
    {
        return testState;
    }
    public void setTestTime(Date testTime)
    {
        this.testTime = testTime;
    }

    public Date getTestTime()
    {
        return testTime;
    }
    public void setTestUesr(String testUesr) 
    {
        this.testUesr = testUesr;
    }

    public String getTestUesr() 
    {
        return testUesr;
    }

    public SmartProduct getSmartProduct() { return smartProduct; }

    public void setSmartProduct(SmartProduct smartProduct) { this.smartProduct = smartProduct; }

    public Long getProductModelId() { return productModelId; }

    public void setProductModelId(Long productModelId) { this.productModelId = productModelId; }

    public Long getTaskPalnId() { return taskPalnId; }

    public void setTaskPalnId(Long taskPalnId) { this.taskPalnId = taskPalnId; }

    public Long getOrganizeorganazId() { return organizeorganazId; }

    public void setOrganizeorganazId(Long organizeorganazId) { this.organizeorganazId = organizeorganazId; }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("testName", getTestName())
            .append("testState", getTestState())
            .append("testTime", getTestTime())
            .append("testUesr", getTestUesr())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
